<?php
echo $path = 'http://www.cqgmy.cn/xxgk/zxdt.htm';


echo "<br>传输协议:".substr($path,0,strrpos($path,":"));
echo "<br>主机名:".substr($path,strrpos($path,":")+3,strrpos($path, "/")-12);
echo "<br>文件名".substr($path, strrpos($path, "/") + 1);
echo "<br>文件扩展名".substr($path, strrpos($path, '.') + 1);